
# SEANLIB=../ocaml-lib/_build
# LIB=/usr0/local/lib
# INCLUDE=/usr0/local/include

# default :
# 	ocamlc -c -I $(SEANLIB) mlpfi.mli
# 	ocamlc -c -I $(SEANLIB) mlpfi.ml
# 	ocamlopt -c -I $(SEANLIB) mlpfi.ml
# 	ocamlc -c -I $(INCLUDE) mlpfi_stubs.c
# 	ocamlmklib -o mlpfi mlpfi.cmo mlpfi.cmx mlpfi_stubs.o -lmpfi -lmpfr -lgmp -L$(LIB)
# 	ocamlc -o test.byte -dllpath . -I $(SEANLIB) lib.cma mlpfi.cma test.ml 
# 	ocamlopt -o test.native -I . -I $(SEANLIB) lib.cmxa mlpfi.cmxa test.ml 

default :
	ocamlbuild -classic-display -no-sanitize all.otarget 

test : 
	ocamlbuild -classic-display -no-sanitize tests.otarget

ctest :
	gcc -o testc -I /usr/local/include -I /sw/include -L/usr/local/lib test.c -L/sw/lib -lmpfi -lmpfr -lgmp 

ctest2 :
	gcc -static -o testc -I /usr0/local/include -L/usr0/local/lib test.c -lmpfi -lmpfr -lgmp 

clean :
	ocamlbuild -classic-display -no-sanitize -clean

